package com.hyf.serviceedu.controller;

import com.hyf.commonutils.fruit;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

public class CourseAdminController {// 课件中的方法

//
//    @ApiOperation(value = "根据ID删除课程")
//    @DeleteMapping("{id}")
//    public fruit removeById(
//            @ApiParam(name = "id", value = "课程ID", required = true)
//            @PathVariable String id){
//        boolean result = courseService.removeCourseById(id);
//        if(result){
//            return fruit.ok();
//        }else{
//            return fruit.error().message("删除失败");
//        }
//    }
}
